import React from 'react';
// 引入配置路由的组件
import {HashRoute as Router ,Route,Link} from 'react-router-dom'
// 引入自定义的路由组件
import Discover from './pages/discover';
import Friend from './pages/friend';
import Mine from './pages/mine';
class Base extends React.Component{
    render(){
        return(
            <fieldset>
                <legend>基础路由</legend>
                <Router>
                    <ul>
                        <li>
                            <Link to='./pages/discover'>发现</Link>
                        </li>
                        <li>
                        <Link to='./pages/friend'>朋友</Link>

                        </li>
                        <li>
                        <Link to='./pages/mine'>我的</Link>

                        </li>
                    </ul>
                </Router>
            </fieldset>
        )
    }
}
export default Base